import MModal from './MModal.vue';

export default function install(Vue) {
    Vue.component('MModal', MModal);
    Vue.prototype.mirror.open = function(name) {
        this.instance.get("modal_" + name).show = true;
    }
    Vue.prototype.mirror.close = function(name) {
        this.instance.get("modal_" + name).show = false;
    }
}